package cn.edu.ctbu.scoremg.controller;

import cn.edu.ctbu.scoremg.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private AdminService adminService;

    @GetMapping("/list")
    public String getList() {
        // 如果需要可以添加获取管理员列表的逻辑
        // List<Admin> admins = adminService.getAll();
        // model.addAttribute("admins", admins);
        return "/admin/list";
    }

    // 在AdminController中
//    @GetMapping("/index")
//    public String adminIndex() {
//        return "/admin/index";
//    }
}